package SerialTest1;

import javax.swing.*;
import java.awt.*;

public class ConfigGUI {
	public JTabbedPane tabPane;
	ImageIcon icon;

	public ConfigGUI() {
		SerialDemo sd = new SerialDemo();
		TCPServer tcp_suv = new TCPServer();
		TCPClient tcp_cli = new TCPClient();
		UDP udp = new UDP();
		icon = new ImageIcon("gridwiz3.jpg");
		tabPane = new JTabbedPane();
		tabPane.addTab("Serial",icon,sd.southPanel);
		tabPane.addTab("TCP Client", icon, tcp_cli.OptionsPane());
		tabPane.addTab("TCP Server",icon, tcp_suv.OptionsPane());
		tabPane.addTab("UDP", icon, udp.OptionsPane());
		
	}


	public static void main(String[] args) {
		new ConfigGUI();
	}
}